home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer Power Tools
/
Programmer Power Tools.iso
/
c
/
jazlib.arc
/
JZFAT.C
< prev
next >
Wrap
Text File
|
1986-04-10
|
792b
|
28 lines
/*
┌────────────────────────────────────────────────────────────────────────────┐
│ Title : jzfat │
│ Purpose : Return file allocation info │
│ │
│ Notes : fdrive = 0 for default, 1 for A:, etc │
│ │
│ Written by Jack Zucker - 75766,1336 301-794-5950 on │
└────────────────────────────────────────────────────────────────────────────┘
*/
/* requires jaz.h */
unsigned char far *jzfat(fdrive , fsect_alloc,fsectsize,fclusters)
unsigned int fdrive ,*fsect_alloc,*fsectsize,*fclusters;
{
TREG wreg;
wreg.h.ah = 0x1c;
wreg.h.dl = fdrive;
msdos(&wreg);
*fsect_alloc = (int) wreg.h.al;
*fsectsize = wreg.x.cx;
*fclusters = wreg.x.dx;
return(LPOINTER(char,wreg.x.ds,wreg.x.bx));
}